package org.example.taskmaster.sorters;

import org.example.taskmaster.database.DatabaseAdapter;

public class DueDateSorter extends Sorter {

	public DueDateSorter() {
		super();
		type = Sorter.DUE_DATE;
	}

	@Override
	public String orderBy() {
		String desc = "";
		if (sortDescending == 1) {
			desc = " DESC";
		}
		String dateSort = DatabaseAdapter.KEY_YEAR + desc + "," + DatabaseAdapter.KEY_MONTH + desc + "," + DatabaseAdapter.KEY_DAY + desc;
		
		return dateSort;
	}

}
